package com.example.spring_mysql.datascope

import com.mybatisflex.annotation.InsertListener
import com.mybatisflex.annotation.SetListener
import com.mybatisflex.annotation.UpdateListener

class EntityChangeListener : InsertListener, UpdateListener, SetListener {
    override fun onInsert(p0: Any?) {
        println("insert:$p0")
    }

    override fun onUpdate(p0: Any?) {
        println("onUpdate:$p0")
    }

    override fun onSet(p0: Any?, p1: String?, p2: Any?): Any? {
        return p2;
    }
}